﻿using System;
using System.Collections.Generic;

namespace Chess.Domain
{
	public class Player
	{
        /// <summary>
        /// 
        /// </summary>
		internal Player()
		{
			
		}

        /// <summary>
        /// 
        /// </summary>
        /// <param name="color"></param>
        internal Player(Color color)
        {
            _Color = color;
			_Pieces = PieceFactory.CreateInitialPieces(color);
        }

		private List<Piece> _Pieces;

		/// <summary>
		/// 
		/// </summary>
        public IList<Piece> Pieces
        {
            get
            {
				return _Pieces.AsReadOnly();
            }
        }

        private Color _Color;

        /// <summary>
        /// 
        /// </summary>
        public Color Color
        {
            get { return _Color; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
		public Boolean IsAttacking(Piece entity)
		{
			throw new System.NotImplementedException();
		}
	}
}
